package com.lx.patterns.visitor;

/**
 * @ClassName Client
 * @Description: 客户端类
 * @Author: 落雪
 * @CreateDate: 2025/2/15 14:16
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/2/15 14:16
 * @UpdateRemark:
 * @Version: 1.0
 */
public class Client {

    public static void main(String[] args) {
        Home home = new Home();
        home.add(new Dog());
        home.add(new Cat());
        Person other = new Other();
        Person owner = new Owner();
        home.action(other);
        home.action(owner);
    }
}
